package com.ycq.testng.groups;

import org.testng.annotations.AfterGroups;
import org.testng.annotations.BeforeGroups;
import org.testng.annotations.Test;

public class GroupsOnMethod {
    @Test(groups = "server")
    public void test1(){
        System.out.println("服务端组测试1111");
    }
    @Test(groups = "server")
    public void test2(){
        System.out.println("服务端组测试2222");
    }
    @Test(groups = "client")
    public void test3(){
        System.out.println("客户端组测试3333333333333");
    }
    @Test(groups = "client")
    public void test4(){
        System.out.println("客户端组测试44444444444");
    }
    @BeforeGroups("server")
    public void beforeGroups(){
        System.out.println("这是---BeforeGroups");
    }
    @AfterGroups("server")
    public void afterGroups(){
        System.out.println("这是AfterGroups");
    }
}
